package ATM_mysql;

import java.io.Serializable;

public class User implements Serializable {
    private int id;
    private String account;
    private String pwd;
    private double balance;
    public User() {
    }

    public User(String account, String pwd, double balance) {
        this.id = id;
        this.account = account;
        this.pwd = pwd;
        this.balance = balance;
    }

    public String getAccount() {
        return account;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "User{" +
                "account='" + account + '\'' +
                ", pwd='" + pwd + '\'' +
                ", balance=" + balance +
                '}' +
                '\n';
    }
}
